item COMMAND '"method 'MUIM_Application_OpenConfigWindow'"' PORT ThumbNailMaker LABEL "MUI Prefs..."
endmenu
text help '"ThumbNailMaker v1.9 by\nLorens Johansson (http://members.xoom.com/snorslex)\nIf you use this program, you are required to\nEmail the author (SnorsleX@Home.se). Otherwise,\nhow is he supposed to know to keep supporting\nThumbNailMaker ?!?\n\033rLorens Johansson"' label "\033c\033bThumbNailMaker v1.9\033n\n\033cLorens Johansson\n\033cFreely Distributable Emailware"
text ID KEY ATTRS MUIA_Text_Contents '"\033c\033bUnregistered! Pease register! It is free!"'
popasl ID CPATH ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("g") ASLFR_RejectIcons 1 ASLFR_TitleText '"Choose the GFXCon executable!"' help '"The path to GFXCon, including the executable file!"'
label "ThumbNail size:"
group HORIZ
label "_X:"
string ID CSIZX ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("x") help '"The horizontal size of the ThumbNails!"'
label "_Y:"
string ID CSIZY ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("y") help '"The vertical size of the ThumbNails!"'
endgroup
label "_JPEG Quality:"
group HORIZ
slider ID CJPGQ ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("j") MUIA_Slider_Min 1 MUIA_Slider_Max 100 help '"The quality of the thumbnails. (Only affects JPEG pictures!)"'
label "_ThumbNail format:"
string ID CPICF ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("t") help '"Which format the ThumbNails should be! For example gif or jpg."'
endgroup
endgroup
endgroup
group frame label "General Settings"
group ATTRS MUIA_Group_Columns 2
label "_Filepattern:"
string ID GPATT ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("f") help '"Which files the program should ignore! This is a normal requester pattern."'
label "S_ource directory:"
popasl ID GDIR ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("o") ASLFR_DrawersOnly 1 ASLFR_TitleText '"Choose where the pics are!"' help '"The directory where the pictures are!"'
endgroup
group ATTRS MUIA_Group_Columns 4
label "ThumbNail dest _dir:"
string ID GTDR ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("d") help '"The name of the subdirectory where the ThumbNails should be stored,\n ONLY a name no path or slash."'
label "Q_uiet:"
check ID QUIET ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("u") help '"Puts >NIL: in the commandline! ie, GFXCon will not show the errors in a separate window!"'
endgroup
endgroup
endgroup
group
group ATTRS MUIA_Group_Columns 2
label "HT_ML names:"
string ID HINNA ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("m") help '"Select the name of the html files (before the number and extension: *****1.html)"'
endgroup
group ATTRS MUIA_Group_Columns 6
label "_Pics per page:"
string ID HPPP ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("p") help '"How many ThumbNails each index page should have."'
label "_X Resolution:"
string ID HXRES ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("x") help '"Which horizontal resolution the page should be optimized for!"'
label "_Table border:"
string ID HBORD ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("t") help '"How thick the border of the frames should be!"'
endgroup
group ATTRS MUIA_Group_Columns 3
label "_Header:"
string ID HHEAD ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("h") help '"What text it would be in the header of the index HTML files! You can use HTML tags too."'
string ID HFOOT ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("f") help '"What text it would be in the footer of the index HTML files! You can use HTML tags too."'
group frame ATTRS MUIA_Group_Columns 3 label "Indexlinks"
label "_Where:"
cycle ID HINLI ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("w") help '"Choose where to put the links to the other indexpages!"' LABELS "Both,Only Top,Only Bottom"
slider ID HIFSI ATTRS MUIA_CycleChain 1 MUIA_Numeric_Format '"Fontsize: %ld"' MUIA_Slider_Min 1 MUIA_Slider_Max 7 help '"Choose the size of the Indexlinks!"'
endgroup
group frame label "Stuff under ThumbNails"
slider ID HFSIZ ATTRS MUIA_CycleChain 1 MUIA_Numeric_Format '"Fontsize: %ld"' MUIA_Slider_Min 1 MUIA_Slider_Max 7 help '"Choose the size of the text under the pictures!"'
group ATTRS MUIA_Group_Columns 3
label "Add _LineFeed:"
check ID HLIFE ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("l") help '"Choose if you want a linefeed between the picture and the filename/size!"'
group HORIZ
label "Add File_name:"
check ID HFNAM ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("n") help '"Put the filename under the picture."'
space HORIZ
endgroup
label "Add Fil_esize:"
check ID HSIZE ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("e") help '"Put the size under the picture."'
group HORIZ
label "_In:"
cycle ID HSIKB ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("i") help '"Choose between Bytes or KiloBytes."' LABELS "Bytes,KiloBytes"
endgroup
endgroup
endgroup
endgroup
group
group HORIZ
space HORIZ
label "_Make HTML pages for pictures:"
check ID HMHPP ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("m") help '"Check this if the pictures should have an HTML page!"'
space HORIZ
endgroup
group ATTRS MUIA_Group_Columns 3
label "_Header:"
string ID HPHEA ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("h") help '"What text it would be in the header of the picture HTML files! You can use HTML tags too."'
string ID HPFOO ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("f") help '"What text it would be in the footer of the picture HTML files! You can use HTML tags too."'
cycle ID BACKG ATTRS MUIA_CycleChain 1 MUIA_Weight 1 help '"Select if you want to use a background picture, or just a colour!"' LABELS "BG Colour,BG Picture"
group ATTRS MUIA_Group_Columns 2
label "BG _Colour:"
string ID HBGCO ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("c") help '"Which color the HTML files BGs should be! (Like #0000FF)"'
label "BG _Picture:"
popasl ID HBGPI ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("p") help '"Which image to use as background!"'
endgroup
endgroup
group frame ATTRS MUIA_Group_Columns 2 label "Colours"
label "_Text Colour:"
string ID CTEXT ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("t") help '"Which color the Texts should have! (Like #0000FF)"'
label "_Link Colour:"
string ID CLINK ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("l") help '"Which color the Links should have! (Like #0000FF)"'
label "AL_ink Colour:"
string ID CALIN ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("i") help '"Which color the ALinks should have! (Like #0000FF)"'
label "_VLink Colour:"
string ID CVLIN ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("v") help '"Which color the Visited Links should have! (Like #0000FF)"'
endgroup
endgroup
endgroup
group ATTRS MUIA_Group_Columns 4
button ID START ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("s") MUIA_Text_HiChar c2d("s") help '"Starts making thumbnails and HTML pages if chosen!"' COMMAND """ThumbNailMaker.rexx START""" label "Start"
button ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("b") MUIA_Text_HiChar c2d("b") help '"Go to the first indexpage!"' COMMAND """ThumbNailMaker.rexx GOURL""" label "Browser"
button ID ABT ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("a") MUIA_Text_HiChar c2d("a") help '"Shows some info about ThumbNailMaker."' COMMAND """ThumbNailMaker.rexx ABOUT""" label "About"
button ID QUIT ATTRS MUIA_CycleChain 1 MUIA_ControlChar c2d("q") MUIA_Text_HiChar c2d("q") help '"Quits ThumbNailMaker."' COMMAND '"quit"' PORT ThumbNailMaker label "Quit"
endgroup
endwindow
call Config("L")
call KeyCheck
res=result
if res="No" then do
Address ThumbNailMaker
window ID REGIS TITLE '"Please Register"'
text label "\033c\033bRIGISTER IS FREE!!!\n\n\033nTo register send a mail to:\nSnorsleX@Home.se!\n\n\033c\033bThe reason:\033n\nI want to know how many there\nis that uses ThumbNailMaker."
group ATTRS MUIA_Group_Columns 3
space HORIZ
button ID CLKEY ATTRS MUIA_CycleChain 1 COMMAND '"window ID REGIS close"' PORT ThumbNailMaker label "I will"
space HORIZ
endgroup
endwindow
end
if res="Yes" then do
Address ThumbNailMaker
txt = '"\033cRegistered to: '||name||' (#'||serial||')! Thanks!"'
text ID KEY ATTRS MUIA_Text_Contents txt
end
return
Tags:
ASLFR_DrawersOnly=0x8008002F
ASLFR_RejectIcons=0x8008003C
ASLFR_TitleText=0x80080001
MUIA_Application_Sleep=0x80425711
MUIA_AppMessage=0x80421955
MUIA_ControlChar=0x8042120b
MUIA_Cycle_Active=0x80421788
MUIA_CycleChain=0x80421ce7
MUIA_Disabled=0x80423661
MUIA_Frame=0x8042ac64
MUIA_Gauge_Current=0x8042f0dd
MUIA_Gauge_Horiz=0x804232dd
MUIA_Gauge_InfoText=0x8042bf15
MUIA_Gauge_Max=0x8042bcdb
MUIA_Group_Columns=0x8042f416
MUIA_Group_Rows=0x8042b68f
MUIA_List_Active=0x8042391c
MUIA_List_Entries=0x80421654
MUIA_Menuitem_Shortcut=0x80422030
MUIA_Menuitem_Title=0x804218be
MUIA_Numeric_Format=0x804263e9
MUIA_Selected=0x8042654b
MUIA_ShowMe=0x80429ba8
MUIA_Slider_Level=0x8042ae3a
MUIA_Slider_Max=0x8042d78a
MUIA_Slider_Min=0x8042e404
MUIA_Text_Contents=0x8042f8dc
MUIA_Text_HiChar=0x804218ff
MUIA_Weight=0x80421d1f
MUIA_Window_ScreenTitle=0x804234b0
MUIM_Application_AboutMUI=0x8042d21d
MUIM_Application_OpenConfigWindow=0x804299ba
MUIV_List_Insert_Bottom=-3
R='0A'X
Return
Config:
lors=arg(1)
if OPEN("file","ThumbNailMaker.prefs","R") then do
i=1
do UNTIL EOF("file")
line.i=READLN("file")
i=i+1
end
line.0=i-1
call CLOSE("file")
end
else do
line.0=32
line.1="CPATH RAM:"
line.2="CSIZX 100"
line.3="CSIZY 100"
line.4="CJPGQ 85"
line.5="CPICF gif"
line.6="GPATT ~#?.(htm#?|info|rexx|guide|text)"
line.7="GDIR RAM:"
line.8="GTDR thumb"
line.9="QUIET 1"
line.10="HINNA index"
line.11="HPPP 25"
line.12="HXRES 640"
line.13="HBORD 1"
line.14="HHEAD <CENTER><H1>%r</H1></CENTER>"
line.15="HFOOT <CENTER><H1>%r</H1></CENTER>"
line.16="HINLI Both"
line.17="HIFSI 5"
line.18="HFSIZ 2"
line.19="HLIFE 0"
line.20="HFNAM 1"
line.21="HSIZE 1"
line.22="HSIKB Bytes"
line.23="HMHPP 1"
line.24="HPHEA <CENTER><H1>%r</H1></CENTER>"
line.25="HPFOO <CENTER><H1>%r</H1></CENTER>"
line.26="BACKG BG Colour"
line.27="HBGCO #987654"
line.28="HBGPI RAM:"
line.29="CTEXT #FFFFFF"
line.30="CLINK #FF0000"
line.31="CALIN #FFFFFF"
line.32="CVLIN #AA0000"
end
call ch("CPATH",lors,"P")
call ch("CSIZX",lors,"T")
call ch("CSIZY",lors,"T")
call ch("CJPGQ",lors,"S")
call ch("CPICF",lors,"T")
call ch("GPATT",lors,"T")
call ch("GDIR",lors,"P")
call ch("GTDR",lors,"T")
call ch("QUIET",lors,"K")
call ch("HINNA",lors,"T")
call ch("HPPP",lors,"T")
call ch("HXRES",lors,"T")
call ch("HBORD",lors,"T")
call ch("HHEAD",lors,"T")
call ch("HFOOT",lors,"T")
call ch("HINLI",lors,"C")
call ch("HIFSI",lors,"S")
call ch("HFSIZ",lors,"S")
call ch("HLIFE",lors,"K")
call ch("HFNAM",lors,"K")
call ch("HSIZE",lors,"K")
call ch("HSIKB",lors,"C")
call ch("HMHPP",lors,"K")
call ch("HPHEA",lors,"T")
call ch("HPFOO",lors,"T")
call ch("BACKG",lors,"C")
call ch("HBGCO",lors,"T")
call ch("HBGPI",lors,"P")
call ch("CTEXT",lors,"T")
call ch("CLINK",lors,"T")
call ch("CALIN",lors,"T")
call ch("CVLIN",lors,"T")
call OPEN("file","ThumbNailMaker.prefs","W")
i=1
do UNTIL i=line.0
call WRITELN("file",line.i)
i=i+1
end
call CLOSE("file")
return
ch:
stringid=arg(1)
saveorload=arg(2)
type=arg(3)
i=1
do until i=line.0
if LEFT(line.i,LENGTH(stringid))=stringid then do
parse var line.i RUBBISH" "setting
if saveorload="L" then do
select
WHEN type="P" then Address ThumbNailMaker popasl ID stringid content Setting
WHEN type="S" then Address ThumbNailMaker slider ID stringid ATTRS MUIA_Slider_Level setting
WHEN type="C" then Address ThumbNailMaker cycle ID stringid label setting
WHEN type="K" then Address ThumbNailMaker check ID stringid ATTRS MUIA_Selected setting
OTHERWISE Address ThumbNailMaker string ID stringid content Setting
end
end
if saveorload="S" then do
select
WHEN type="P" then Address ThumbNailMaker popasl ID stringid
WHEN type="S" then Address ThumbNailMaker slider ID stringid
WHEN type="C" then Address ThumbNailMaker cycle ID stringid
WHEN type="K" then Address ThumbNailMaker check ID stringid
OTHERWISE Address ThumbNailMaker string ID stringid
end
changeto=result
line.i=stringid" "changeto
end
end
i=i+1
end
return
about:
address ThumbNailMaker
window ID ABOUT Title '"About ThumbNailMaker v1.9"' COMMAND '"window ID ABOUT close"' PORT ThumbNailMaker